package org.cytoscape.myapp.cytoscape_app_v1.internal.visual;

import java.util.HashMap;

import org.cytoscape.view.model.VisualProperty;
import org.cytoscape.view.vizmap.VisualMappingFunction;
import org.cytoscape.view.vizmap.VisualMappingFunctionFactory;
import org.cytoscape.view.vizmap.mappings.ContinuousMapping;
import org.cytoscape.view.vizmap.mappings.PassthroughMapping;

public class MappingFunctionConcretePassthroughSimple implements MappingFunctionFactory{

	@Override
	public <T> VisualMappingFunction createVisualMappingFunction(
			String attribute, Class<? extends T> type,
			VisualProperty<T> property,
			HashMap<String, Object> propertyAttributes,
			VisualInstanceDependecies dependecies) {
	
		PassthroughMapping mapping = (PassthroughMapping)
				dependecies.getVmfFactoryP().createVisualMappingFunction(attribute, type, property);
		
		return mapping;
	}

	
}
